package com.toread.platform;

import com.toread.platform.hystrix.CallDependencyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * Created by toread on 17-8-10.
 */
@RestController
public class TestController {
    @Autowired
    private RestTemplate restTemplate;

    @Autowired
    private CallDependencyService callDependencyService;

    @RequestMapping("/")
    public String home() {
        return callDependencyService.say();
    }
}
